layui.config({
    base: '/module/'
}).extend({
    /*formSelects: "formSelects/formSelects-v4",
    treetable: "treetable-lay/treetable",
    dropdown: "dropdown/dropdown",
    notice: "notice/notice",
    step: "step-lay/step"*/
}).use(["layer"],
function() {
    var a = layui.jquery/*, b = layui.data("easyweb").theme*/;
    /*b && layui.link(getThemeDir() + b + ".css");*/
    setTimeout(function() {
        a(".page-loading").addClass("layui-hide")
    }, window == top ? 500 : 300);
});
function removeTheme() {
    var a = "layuicss-" + getThemeDir().replace(/\.|\//g, "");
    layui.jquery('link[id^="' + a + '"]').remove()
}
function getThemeDir() {
    return getProjectUrl() + "assets/css/theme/"
}
function getProjectUrl() {
    var a = layui.cache.dir;
    if (!a) {
        a = document.scripts;
        for (var b = a.length - 1,
        c, d = b; 0 < d; d--) if ("interactive" === a[d].readyState) {
            c = a[d].src;
            break
        }
        c = c || a[b].src;
        a = c.substring(0, c.lastIndexOf("/") + 1)
    }
    return a.substring(0, a.indexOf("assets"))
};